package com.ts.content.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ts.content.dto.TopicDTO;
import com.ts.content.entity.TopicEntity;

import java.util.List;

public interface TopicService extends IService<TopicEntity> {

    public IPage<TopicDTO> getTopicList(IPage<TopicDTO> page);

    /**
     * 获取热门圈子
     * @param count
     * @return
     */
    List<TopicEntity> getHotTopic(Integer count);


    List<TopicEntity> getCurrentUserJoinTopic(Integer userId);
}
